﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Ecommerce.Migrations
{
    public partial class UpdateTbOrderStates : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "CommodEvaluaGrade",
                table: "tbOrderInfos",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "CommodEvaluaOrder",
                table: "tbOrderInfos",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<decimal>(
                name: "CommodEvaluaTime",
                table: "tbOrderInfos",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m);

            migrationBuilder.AddColumn<int>(
                name: "OrderInfoAuditState",
                table: "tbOrderInfos",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "OrderInfoDeliveryState",
                table: "tbOrderInfos",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "OrderInfoWhetherPay",
                table: "tbOrderInfos",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "OrderWheShipments",
                table: "tbOrderInfos",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CommodEvaluaGrade",
                table: "tbOrderInfos");

            migrationBuilder.DropColumn(
                name: "CommodEvaluaOrder",
                table: "tbOrderInfos");

            migrationBuilder.DropColumn(
                name: "CommodEvaluaTime",
                table: "tbOrderInfos");

            migrationBuilder.DropColumn(
                name: "OrderInfoAuditState",
                table: "tbOrderInfos");

            migrationBuilder.DropColumn(
                name: "OrderInfoDeliveryState",
                table: "tbOrderInfos");

            migrationBuilder.DropColumn(
                name: "OrderInfoWhetherPay",
                table: "tbOrderInfos");

            migrationBuilder.DropColumn(
                name: "OrderWheShipments",
                table: "tbOrderInfos");
        }
    }
}
